<div class="jobs view">
<div class="widget" id="widget_job_view" style="width: 96%">
    <div class="toggle">&nbsp;</div>
    <h3 class="handle"><?php printf(__('%d Students Applied the job', true),$job['Job']['students_job_count']);?></h3>
    <div class="content">
        <div class="table">
            <table>
                <thead>
                    <tr>
                        <th><?php __('Name'); ?></th>
                        <th><?php __('Gender'); ?></th>
                        <th><?php __('Number'); ?></th>
                        <th><?php __('Class'); ?></th>
                        <th><?php __('Political'); ?></th>
                        <th><?php __('Birthday'); ?></th>
                        <th><?php __('Academic'); ?></th>
                        <th><?php __('Degree'); ?></th>
                        <th><?php __('Phone'); ?></th>
                        <th><?php __('Email'); ?></th>
                    </tr>
                </thead>
                <?php $students = $job['Student']; ?>
                <?php foreach($students as $i=>$student):
                    $class = $i%2 ? 'altrow' : ''; ?>
                    <tr<?php echo $class; ?>>
                        <td><?php echo $student['name']; ?></td>
                        <td><?php echo $student['gender']; ?></td>
                        <td><?php echo $student['number']; ?></td>
                        <td><?php echo $student['class']; ?></td>
                        <td><?php echo $student['political']; ?></td>
                        <td><?php echo $student['birthday']; ?></td>
                        <td><?php echo $student['academic']; ?></td>
                        <td><?php echo $student['degree']; ?></td>
                        <td><?php echo $student['phone']; ?></td>
                        <td><?php echo $student['email']; ?></td>
                    </tr>
                <?php endforeach; ?>
            </table>
        </div>
        <!--div class="actions">
            <ul>
                <li><?php echo $html->link(
                    __('Export As Excel', true),
                    array(
                        'controller'=> 'jobs',
                        'action'    => 'student',
                        'job'        => $job['Job']['id'],
                        'exprot'    => true
                    )); ?>
                </li>
                <br class="clear"/>
            </ul>
        </div-->
        <?php //unset($job['Company']); /*unset($job['Job']);*/ debug($job); ?>
    </div>
</div>
</div>
